package com.springboot.starter.coderacademy.config;

public class CoderAcademyService {

    private final CoderAcademyConfig coderAcademyConfig;

    public CoderAcademyService(CoderAcademyConfig coderAcademyConfig) {
        this.coderAcademyConfig = coderAcademyConfig;
    }

    public String connectDB() {
        return "Connect to "+ coderAcademyConfig.getUrl() + ":"+coderAcademyConfig.getPort()+ " successfully!";
    }
}

